<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid black;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
        button {
            margin-top: 5px;
            margin-bottom: 5px;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>项目成员</h1>
        <button><a href="/project">返回</a></button>
        <button><a href="/project/members/add/{{ .project_name }}">管理成员</a></button>
    </div>
    <div class="content">
        <table>
            <thead>
                <tr>
                    <th>项目名称</th>
                    <th>成员ID</th>
                    <th>成员名称</th>
                    <th>成员角色</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {{ range .data }}
                <tr>
                    <td>{{ .ProjectId }}</td>
                    <td>{{ .MemberId }}</td>
                    <td>{{ .MemberName }}</td>
                    <td>{{ .MemberRole }}</td>
                    <td>{{ .CreateTime }}</td>
                    <td>
                        <button>
                            <a href="">edit</a>
                        </button>
                        <button>
                            <a href="">delete</a>
                        </button>
                    </td>
                </tr>
                {{ end }}
            </tbody>
        </table>
    </div>
</body>
</html>